import { lazy } from "react";
import { RouteObject } from "../interface/index.ts";
import lazyLoad from "../utils/lazyLoad.tsx";


const antv:RouteObject[]=[
    {
        path:'/antv',
        element:lazyLoad(lazy(()=>import("@/pages/antv/index"))),
        label:"antv图表",
        meta:{
            title:"antv图表"
        },
        children:[
            {
                path:'/antv/f2',
                element:lazyLoad(lazy(()=>import("@/pages/antv/f2/index"))),
                label:"f2图表",
                meta:{
                    title:"f2图表"
                }
            },
            {
                path:'/antv/g6',
                element:lazyLoad(lazy(()=>import("@/pages/antv/g6/index"))),
                label:"g6图表",
                meta:{
                    title:"g6图表"
                }
            },
            {
                path:'/antv/g2',
                element:lazyLoad(lazy(()=>import("@/pages/antv/g2/index"))),
                label:"g2图表",
                meta:{
                    title:"g2图表"
                }
            },
            {
                path:'/antv/L7',
                element:lazyLoad(lazy(()=>import("@/pages/antv/L7/index"))),
                label:"L7图表",
                meta:{
                    title:"L7图表"
                },
                children:[
                    {
                        path:'/antv/L7/mapfs',
                        element:lazyLoad(lazy(()=>import("@/pages/antv/L7/MapFs/MapFs"))),
                        label:"圆形扫光城市",
                        meta:{
                            title:"圆形扫光城市"
                        }
                    },
                    {
                        path:'/antv/L7/snake',
                        element:lazyLoad(lazy(()=>import("@/pages/antv/L7/Snake/index"))),
                        label:"snake布局",
                        meta:{
                            title:"圆形扫光城市"
                        }
                    }
                ]
            },
            {
                path:'/antv/x6',
                element:lazyLoad(lazy(()=>import("@/pages/antv/x6/index"))),
                label:"x6图表",
                meta:{
                    title:"x6图表"
                }
            }
        ]
    }

]
export default antv;